<div class="row">
	<div class="col-md-12 header">
		<!--<h2>When Were You Born?</h2>-->
	</div>
</div>

<div class="row">
	<div class="col-md-6 col-centered">
    	<h2>When Were You Born?</h2>
    </div>
    
    <?php if(validation_errors() != false): ?>
        <div class="col-md-6 col-centered">
            <div class="alert alert-danger">
                <ul>
                <?php echo validation_errors(); ?>
                </ul>
            </div>
        </div>
    <?php endif; ?>
    
	<div class="col-md-6 col-centered">
    	<!--<form id="birthday-form">-->
        <?php echo form_open('age') ?>	
        
        
        	<?php /*
        	<div class="row">
            	<div class="col-md-12"> 
                    <div class="form-group">
                    	<label for="first_name" class="control-label">First Name</label>
                    	<input class="form-control" type="text" name="first_name" value="<?php echo set_value('first_name'); ?>" size="50" /> 
                    </div> 
                </div>
            </div>
			*/ ?>
            
            <div class="row pad-bottom">
            	<div class="form-group">
                
                	
                    
                    <div class="col-xs-4 col-md-4">
                        <select class="form-control" id="birthday_month" name="birthday_month">
                        
                            <option value="" <?php echo set_select('birthday_month', TRUE); ?>>MM</option>
                            <?php
                            for ($i=1; $i<=12; $i++){
                                if($i<10){
                                    ?>
                                    <option value="<?php echo '0'.$i; ?>" <?php echo set_select('birthday_month', '0'.$i); ?>><?php echo '0'.$i; ?></option>
                                    <?php
                                }else{
                                    ?>
                                    <option value="<?php echo $i; ?>" <?php echo set_select('birthday_month', $i); ?>><?php echo $i; ?></option>
                                    <?php
                                }	
                            }
							?>
							
                        </select>
                    </div>
                    
                    <div class="col-xs-4 col-md-4">
                        <select class="form-control" id="birthday_day" name="birthday_day">
                            <option value="" <?php echo set_select('birthday_day', TRUE); ?>>DD</option>
                            <?php
                            for ($i=1; $i<=31; $i++){
                                if($i<10){
                                    ?>
                                    <option value="<?php echo '0'.$i; ?>" <?php echo set_select('birthday_day', '0'.$i); ?>><?php echo '0'.$i; ?></option>
                                    <?php
                                }else{
                                    ?>
                                    <option value="<?php echo $i; ?>" <?php echo set_select('birthday_day', $i); ?>><?php echo $i; ?></option>
                                    <?php
                                }	
                            }
                            ?>
                        </select>
                    </div>
                    
                    <div class="col-xs-4 col-md-4">
                        <select class="form-control" id="birthday_year" name="birthday_year">
                            <option value="" <?php echo set_select('birthday_year', TRUE); ?>>YYYY</option>
                            <?php
                            for ($i=1943; $i<=1998; $i++){ // 01/1993 to 01/2014 = 21 years old
                            	?>
                            	<option value="<?php echo $i; ?>" <?php echo set_select('birthday_year', $i); ?>><?php echo $i; ?></option>
                                <?php	
                            }
                            ?>
                        </select>
                    </div>
				
                </div><!-- .form-group -->
            </div><!-- row -->
        
        
            <div class="row">
                <div class="col-md-12">  
                	<div class="form-group">
                    	
                        <input type="checkbox" name="remember_me" id="remember_me" value="1" <?php echo set_checkbox('remember_me', '1'); ?> /> 
                        <label>Remember me for future visits</label>
                    </div>
                </div>
            </div>
            
            
            <div class="row">
                <div class="col-md-12">  
                    <input class="btn btn-default" name="birthday-submit" type="submit" value="ENTER SITE" />
                </div>
            </div>
                            
        </form>
    </div>
</div>